# Maintainer: Andrea Dalle Vacche adallevacche@bloomberg.net

_realname=Carp-Clan
pkgname=perl-${_realname}
pkgver=6.06
pkgrel=1
pkgdesc="Carp::Clan - Report errors from perspective of caller of a \"clan\" of modules"
arch=('any')
license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/~stbey/Carp-Clan/"
depends=('perl')
groups=('perl-modules')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/K/KE/KENTNL/${_realname}-${pkgver}.tar.gz)
sha256sums=('ea4ac8f611354756d43cb369880032901e9cc4cc7e0bebb7b647186dac00c9d4')

build() {
  cd ${_realname}-${pkgver}
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd ${_realname}-${pkgver}
  make test
}

package() {
  cd ${_realname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
